import request from '/@/utils/request'
import {prefix} from '/@/api/oa'

export function getStaffTrainList(params: object) {
    return request({
        url: prefix + '/staffTrain/getStaffTrainList',
        method: 'get',
        params
    })
}

export function createTrain(data: object) {
    return request({
        url: prefix + '/staffTrain/create',
        method: 'post',
        data
    })
}

export function editTrain(data: object) {
    return request({
        url: prefix + '/staffTrain/edit',
        method: 'post',
        data
    })
}

export function removeTrain(data: object) {
    return request({
        url: prefix + '/staffTrain/delete',
        method: 'post',
        data
    })
}
